<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>

<%-- <form id="pagerForm" method="post" action="${rootpath}/back/backadmins_adminsList.htm">
	<input type="hidden" name="status" value="${param.status}"> <input
		type="hidden" name="keywords" value="${param.keywords}" /> <input
		type="hidden" name="pageNum" value="1" /> <input type="hidden"
		name="numPerPage" value="${model.numPerPage}" /> <input type="hidden"
		name="orderField" value="${param.orderField}" />
</form> --%>

<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="${rootpath }/back/system/regionList.mvc"
		method="post">
		<div class="searchBar">
		<input type="hidden" name="navTabId" value="regionList">
		<input type="hidden" name="callbackType" value="closeCurrent">
			<!--<ul class="searchContent">
			<li>
				<label>我的客户：</label>
				<input type="text"/>
			</li>
			<li>
			<select class="combox" name="province">
				<option value="">所有省市</option>
				<option value="北京">北京</option>
				<option value="上海">上海</option>
				<option value="天津">天津</option>
				<option value="重庆">重庆</option>
				<option value="广东">广东</option>
			</select>
			</li>
		</ul>
		-->
			<table class="searchContent">
				<tr>
					<td>
						关键字：<input type="text" name="keyword" value="${requestScope.keyword }"/>
						状态：
							<select name="status">
								<option value="">请选择</option>
								<option value="1" ${requestScope.status=='1'?'selected':'' }>启用</option>
								<option value="0" ${requestScope.status=='0'?'selected':'' }>禁用</option>
							</select>
						创建时间：
							<input type="text" class="date" datefmt="yyyy-MM-dd HH:mm:ss" readonly="true" name="st" value="${requestScope.st }"/>--->
							<input type="text" class="date" datefmt="yyyy-MM-dd HH:mm:ss" readonly="true" name="ed" value="${requestScope.ed }"/>
					</td>
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">检索</button>
							</div>
						</div></li>
					
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="${rootpath}/back/system/regionInsert.mvc" target="navTab" rel="adminsInsert"><span>添加</span></a></li>
			<li><a class="delete"  warn="请选择一个用户"
				href="${rootpath}/back/backadmins_adminsDelete.htm?id={sid_user}" target="ajaxTodo"
				title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="${rootpath}/back/system/regionUpdate.htm?id={sid_user}"
				target="navTab"><span>修改</span></a></li>
			<li class="line">line</li>
			<li><a class="edit" href="${rootpath }/back/system/regionList.mvc?parentId=0" target="navTab" rel="regionList"><span>查看所有省份</span></a></li>
			<li><a class="edit" href="${rootpath }/back/system/regionList.mvc?parentId={sid_user}" target="navTab" rel="regionList"><span>查看子节点</span></a></li>
			<li><a class="icon" href="demo/common/dwz-team.xls"
				target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="80">序号</th>
				<th width="80">父名称</th>
				<th width="80">名称</th>
				<th width="60">拼音</th>
				<th width="60">areacode</th>
				<th width="80">叶子节点</th>
				<th width="60">状态</th>
				<th width="100">创建时间</th>
				<th width="100">更新时间</th>
				<th width="100">发布时间</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${requestScope.regionList }" var="region" varStatus="stat">
				<tr target="sid_user" rel="${region.id }">
					<td>${stat.count }</td>
					<td>${region.parentRegion.name }</td>
					<td>${region.name }</td>
					<td>${region.pinyin }</td>
					<td>${region.areacode }</td>
					<td>${region.leafStatusStr }</td>
					<td>${region.statusStr }</td>
					<%-- <td>${admins.status == '1' ? '启用' : admins.status == '0' ? '禁用' : '未知' }</td> --%>
					<td><fmt:formatDate value="${region.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
					<td><fmt:formatDate value="${region.updateTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
					<td><fmt:formatDate value="${region.pubTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<form action="${rootpath}/back/system/regionList.mvc" id="regionListPageForm" method="post" onsubmit="return navTabSearch(this);">
			<input type="hidden" name="keyword" value="${requestScope.keyword }"/>
			<input type="hidden" name="status" value="${requestScope.status }"/>
			<input type="hidden" name="st" value="${requestScope.st }"/>
			<input type="hidden" name="ed" value="${requestScope.ed }"/>
			<input type="hidden" name="parentId" value="${requestScope.parentId }">
			<div class="pages">
				<a href="" class="button" onclick="return pageFormSubmit('regionListPageForm','regionListCurrentPage',1,'regionListPageSize',${requestScope.pageInfoUtil.pageSize});"><span>首页</span>&nbsp;&nbsp;</a>
				<a href="" class="button" onclick="return pageFormSubmit('regionListPageForm','regionListCurrentPage',${requestScope.pageInfoUtil.prePage},'regionListPageSize',${requestScope.pageInfoUtil.pageSize});"><span>上一页</span>&nbsp;&nbsp;</a>
				<a href="" class="button" onclick="return pageFormSubmit('regionListPageForm','regionListCurrentPage',${requestScope.pageInfoUtil.nextPage},'regionListPageSize',${requestScope.pageInfoUtil.pageSize});"><span>下一页</span>&nbsp;&nbsp;</a>
				<a href="" class="button" onclick="return pageFormSubmit('regionListPageForm','regionListCurrentPage',${requestScope.pageInfoUtil.totalPage},'regionListPageSize',${requestScope.pageInfoUtil.pageSize});"><span>尾页</span>&nbsp;&nbsp;</a>
				共${requestScope.pageInfoUtil.currentPage}/${requestScope.pageInfoUtil.totalPage}页
				共${requestScope.pageInfoUtil.totalRecord }条记录
				<input type="text" name="currentPage" id="regionListCurrentPage" value="${requestScope.pageInfoUtil.currentPage}" size="5">
				<input type="text" name="pageSize" id="regionListPageSize" value="${requestScope.pageInfoUtil.pageSize}" size="5">
				<input type="submit" value="GO">
			</div>
		</form>
	</div>
</div>